Non TMF Biz Api
POST - productOrdering
CASE 1 Unitary Test
Order creation
URL
https://[localhost]:[port]/nontmf-biz/v1/{businessId}/productOrdering
Base Uri Param
name | type | description | required |
---|---|---|---|
businessId | string | Business unit identifier. Example: JM,PA,PR,CR | Y |
Header
name | value | description | required |
---|---|---|---|
client_id | string | The client_id identifying the channel. Minimum characters: 5 | Y |
client_secret | string | Password associated with the client_id. Minimum characters: 5 | Y |
X-Correlation-ID | string | Identifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction. | Y |
cURL request
{
"sourceSystem": "Digital",
"reason": "Digital",
"digitalOrderId": "12728036637893993",
"deliveryAddress": {
"street1": "11237 ",
"street2": "CALLE JAZMIN",
"city": "SANTA ISABEL",
"postalcode": "007573126",
"state": "PR",
"country": "US"
},
"deliveryType": "Mail Delivery/Direct Delivery",
"deliverySpeed": "Standard",
"autopay": true,
"ebill": true,
"paymentCaptured": true,
"transactionId": "24324243242",
"lineDetails": [
{
"lineNumber": "1",
"planDetails": {
"msisdn": "2432666644",
"nokiaReservationId": "234234234",
"planSku": "2432666644",
"simType": "Physical SIM/Dynamic SIM",
"aliasFirstName": "2432666644",
"aliasLastName": "234234234",
"portIn": false,
"portInMsisdn": "",
"portInCountry": ""
},
"deviceDetails": {
"deviceSku": "106655",
"installments": true,
"installmentDetails": {
"term": "12",
"frequencyAmount": "55",
"financedAmount": "550",
"downpayment": "100",
"downpaymentTax": "10"
},
"quickUpgrade": false,
"insurance": "1",
"tradeIn": false,
"byod": false
}
}
],
"accountDetails": {
"firstName": "2432666644",
"middleName": "234234234",
"lastName": "2432666644",
"email": "asdadsa@gmail.com",
"phoneNumber": "2432666644",
"dateOfBirth": "2001-07-26",
"address": {
"street1": "11237 ",
"street2": "CALLE JAZMIN",
"city": "SANTA ISABEL",
"postalcode": "007573126",
"state": "PR",
"country": "US"
},
"consumerPin": "1234",
"preferredLanguage": "English/Spanish",
"ssn": "234234234",
"creditScore": "780",
"creditSegment": "K",
"creditScoreDate": "2021-07-26"
}
}
Definitions
name | type | description | required |
---|---|---|---|
sourceSystem | String | Name of the source system | Y |
reason | String | Reason of the request | Y |
digitalOrderId | String | Unique order ID | Y |
deliveryType | String | Type of delivery | N |
deliverySpeed | String | Priority of Delivery | N |
autopay | Boolean | Auto pay flag | N |
ebill | Boolean | Ebill flag | N |
paymentCaptured | Boolean | Payment flag | N |
transactionId | String | Transaction ID | N |
lineDetails | Array | Line Details | N |
lineDetails.lineNumber | String | Line identification Number | N |
lineDetails.planDetails | Object | Details of the plan | N |
lineDetails.planDetails.msisdn | String | MSISDN | N |
lineDetails.planDetails.nokiaReservationId | String | Reservation ID at Nokia | N |
lineDetails.planDetails.planSku | String | Plan identifier | N |
lineDetails.planDetails.simType | String | Type of Sim | N |
lineDetails.planDetails.aliasFirstName | String | First name of alias | N |
lineDetails.planDetails.aliasLastName | String | Last name of alias | N |
lineDetails.planDetails.portIn | Boolean | Port in flag | N |
lineDetails.planDetails.portInMsisdn | String | porting MSISDN | N |
lineDetails.planDetails.portInCountry | String | Country of port-in request. | N |
lineDetails.deviceDetails | Object | Details of the device | N |
lineDetails.deviceDetails.deviceSku | String | device SKU identifier | N |
lineDetails.deviceDetails.installments | Boolean | Installments flag | Y |
lineDetails.deviceDetails.installmentDetails | Object | Details of installment | N |
lineDetails.deviceDetails.installmentDetails.term | String | Term of installment | N |
lineDetails.deviceDetails.installmentDetails.frequencyAmount | String | Frequency Amount for the installments | N |
lineDetails.deviceDetails.installmentDetails.financedAmount | String | Financed Amount | N |
lineDetails.deviceDetails.installmentDetails.downpayment | String | Down payment | N |
lineDetails.deviceDetails.installmentDetails.downpaymentTax | String | Tax on the down payment | N |
lineDetails.deviceDetails.quickUpgrade | Boolean | Upgrade flag | N |
lineDetails.deviceDetails.insurance | String | Insurance details | N |
lineDetails.deviceDetails.tradeIn | Boolean | Trade-in flag | N |
lineDetails.deviceDetails.byod | Boolean | BYOD flag | N |
accountDetails | Object | Account details | N |
accountDetails.firstName | String | First Name of account | N |
accountDetails.middleName | String | Middle Name of account | N |
accountDetails.lastName | String | Last Name of account | N |
accountDetails.email | String | Email address of account | N |
accountDetails.phoneNumber | String | Phone Number of account | N |
accountDetails.dateOfBirth | String | Date of Birth | N |
accountDetails.address | Object | Address details | N |
accountDetails.address.street1 | String | Street1 address | N |
accountDetails.address.street2 | String | Street2 address | N |
accountDetails.address.city | String | City | N |
accountDetails.address.postalcode | String | Postal code | N |
accountDetails.address.state | String | State | N |
accountDetails.address.country | String | Country | N |
accountDetails.consumerPin | String | Consumer PIN | N |
accountDetails.preferredLanguage | String | Preferred language for communication | N |
accountDetails.ssn | String | Social Security Number | N |
accountDetails.creditScore | String | Credit Score | N |
accountDetails.creditSegment | String | Credit Segment identifier | N |
accountDetails.creditScoreDate | String | Date of Credit Score fetched | N |
deliveryAddress | Object | Delivery address details | N |
deliveryAddress.street1 | String | Street1 address for delivery | N |
deliveryAddress.street2 | String | Street2 address for delivery | N |
deliveryAddress.city | String | City | N |
deliveryAddress.postalcode | String | Postal code | N |
deliveryAddress.state | String | State | N |
deliveryAddress.country | String | Country | N |
Response
Success Response with 200
{
"status": "Success",
"message": "Order request received Successfully"
}
name | type | description | required |
---|---|---|---|
status | String | Status of the request | Y |
message | String | response message | Y |